package com.lanou.moving.task;

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;
import com.lanou.moving.R;
import com.lanou.moving.utils.MyConfig;

public class NotificationBean extends Notification
{
	private Context mContext;

	public NotificationBean(Context context, int icon, CharSequence tickerText, long when)
	{
		super(icon, tickerText, when);
		this.mContext = context;
		this.flags = Notification.FLAG_AUTO_CANCEL; // |= 
//		this.flags = Notification.FLAG_ONGOING_EVENT;

		RemoteViews mRemoteView = new RemoteViews(mContext.getPackageName(), R.layout.remote_view);
		this.contentView = mRemoteView;
		String songName = MyConfig.getSharePreStr(mContext, "songName", "songName");
		contentView.setTextViewText(R.id.download_songName, songName);
	}

}
